/*
 * @LastEditors: 杜康
 * @LastEditTime: 2021-10-01 14:39:05
 */
const item = new WeakMap()
export default class Stack {
    constructor () {
        items.set(this, [])
    }
    push (element) {
        const s = items.get(this)
        s.push(element)
    }
    pop () {
        const s = items.get(this)
        const r = s.pop()
        return r
    }
}